package cn.lili.controller;


import cn.lili.listener.PaymentMessageListener;
import cn.lili.modules.payment.entity.dto.PaymentCallback;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 支付消息重推
 *
 * @author liushuai(liushuai711 @ gmail.com)
 * @version v4.0
 * @Description:
 * @since 2023/4/14 16:39
 */
@RestController
@RequestMapping("/consumer/payment")
@Api(tags = "异常支付API")
@RequiredArgsConstructor
public class PaymentMessageRePush {


    private final PaymentMessageListener paymentMessageListener;

    @ApiOperation(value = "支付消息")
    public void onMessage(PaymentCallback paymentCallback) {
        paymentMessageListener.onMessage(paymentCallback);

    }
}
